<template>
	<view class="content" :style="{height:QHeight+'vh'}">
		<image :style="{height:QHeight+'vh'}" src="../../static/other/qidong.jpg" mode=""></image>
	</view>
</template>
<script>
	export default {
		data() {
		return {
				time:5,
				QHeight:100
			}
		},
		methods: {
			
		},
		onLoad() {
			console.log(9999)
			
			uni.getSystemInfo({
				success(res) {
					let height  = res.windowHeight -uni.upx2px(0);
					this.QHeight = height;
				}
			})
			let timeS = this.time;
			this.QTime(timeS)
		},
		methods:{
			QTime(timeS){
				let timeStart = setInterval(function(){
					timeS--;
					if(timeS==0){
						clearInterval(timeStart);
						uni.redirectTo({
							url:'../user/login'
						})
					}
				},1000,timeS)
			}
		}
	}
</script>

<style>
	.content{
		width: 100%;
		height: 100%;
	}
	.content>image{
		width: 100%;
	}
	
</style>
